<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../common/jspcommon.jsp"%>

<c:forEach items="${pageModel.list }" var="doing" varStatus="v">
	<div class="item_box box_s1">

		<div class="shadow"></div>
		<div class="pro_box">
			<c:if
				test="${doing.doingProductList[0].from=='淘宝' && (doing.doingProductList[0].maxPrice-doing.doingProductList[0].price)>=10 }">
				<span class=" icon_bg pro_lbl">降价${doing.doingProductList[0].maxPrice-doing.doingProductList[0].price
					}元</span>
			</c:if>
			<div class="love_comment_ope" style="display: none;"
				onmouseover="$(this).show()" onmouseout="$(this).hide()">
				<a href="javascript:void(0);"
					onclick="GUOGUO.loveDoing('${doing.identifier}')" class="icon_bg">收藏</a><a
					href="/shop/go.htm?pid=${doing.doingProductList[0].identifier }"
					target="_blank" class="icon_bg comment">评论</a>
			</div>
			<a target="_blank"
				href="/shop/go.htm?pid=${doing.doingProductList[0].identifier }"
				class="pic"><img
				src="${doing.doingProductList[0].imageServer }${doing.doingProductList[0].picThumb }_200xXXX.jpg"
				alt="${doing.doingProductList[0].name }"
				title="${doing.doingProductList[0].name }" width="200"
				height="${doing.doingProductList[0].height200xxx }"
				onmouseover="$(this).parent().prev('div').show()"
				onmouseout="$(this).parent().prev('div').hide()" class=" block" />
			</a>
		</div>
		<div class="pro_t_p">
			<a class="title"> <c:if test="${doing.replaceContent==null }">${doing.doingProductList[0].showName }</c:if>
				<c:if test="${doing.replaceContent!=null }">${doing.showContent }</c:if>
			</a> <span class="price">￥${doing.doingProductList[0].price }</span>
		</div>
		<div class="l_c_nums">
			<c:if test="${doing.doingProductList[0].commission>0 }">
				<a href="/shop/go.htm?pid=${doing.doingProductList[0].identifier }"
					target="_blank" class="fanli"><img
					src="../../images/v4/other/icon_8.png" class=" block" />
				</a>
			</c:if>
			<span><b class="red_heart"></b><a class="collection_nums"
				href="javascript:void(0);"
				onclick="GUOGUO.loveDoing('${doing.identifier}')">收藏</a>
			<c:if test="${doing.loveAmount>0 }">
					<i>${doing.loveAmount }</i>
				</c:if>
			</span>
		</div>
		<c:if test="${doing.doingProductList[0].doingProductTime != null }">
			<div class="interval_fl">
				<div class="interval_box">
					<span class="i_left_time">
						还有${doing.doingProductList[0].doingProductTime.time } </span> <span
						class="fl_percent"> 返<fmt:formatNumber
							value="${doing.doingProductList[0].doingProductTime.guoguojieCommissionRate*100 }"
							pattern="#" />% </span>
				</div>
			</div>
		</c:if>
		<div class="comment_box">
			<ul>
				<li
					<c:if test="${fn:length(doing.commentList)>0 }">class="line"</c:if>>
					<div class="lay_lr_box">
						<a href="/member/tashare.htm?ta=${doing.member}" target="_blank"
							class="l_box"><img
							src="${doing.memberImageServer }${doing.memberAvatar }"
							width="32" height="32" class=" block" />
						</a>
						<div class="r_box">
							<a href="/member/tashare.htm?ta=${doing.member}" target="_blank"
								class="name">${doing.memberName }</a><i class="who_share">分享</i>
							<p class="share_time">${doing.doingCreated }</p>
						</div>
					</div></li>
				<c:forEach items="${doing.commentList }" var="c" varStatus="v">
					<li class="line">
						<div class="lay_lr_box">
							<a href="/member/tashare.htm?ta=${c.member}" target="_blank"
								class="l_box"><img
								src="${c.memberImageServer }${c.memberAvatar }" width="32"
								height="32" class=" block" />
							</a>
							<div class="r_box">
								<a href="/member/tashare.htm?ta=${c.member}" target="_blank"
									class="name">${c.nickname }</a> <span class="info clr9">${c.content
									}</span>
							</div>
						</div></li>
				</c:forEach>
				<c:if test="${fn:length(doing.commentList)>0 }">
					<li class="last"><a
						href="/shop/go.htm?pid=${doing.doingProductList[0].identifier }"
						target="_blank">查看全部<i>${doing.commentCount }</i>条评论...</a></li>
				</c:if>
			</ul>
		</div>
	</div>
</c:forEach>